/**
 * Filename DiseaseJudgeFactory.java 2021年06月24日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 *
 * @author wuyingchao
 */
package com.ehome.poct.core.factory;

import com.ehome.poct.core.service.report.DiseaseJudge;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 病症关联工厂类
 *
 * @author wyc
 * @date 2021/06/24 15:05
 **/
@Service
@AllArgsConstructor
public class DiseaseJudgeFactory {
    private final Map<String, DiseaseJudge> diseaseJudgeMap;

    public DiseaseJudge createJudge(String name) {
        return diseaseJudgeMap.get(name);
    }
}